<?php


namespace App\Api\Models;


use Illuminate\Database\Eloquent\Model;

class GoodsComments extends Model
{
    protected $table = 'cmc_good_comments';
    //获取所有评论
    static public function allComments($gid)
    {
        return GoodsComments::where('good_id',$gid)->get('comment_id')->toArray();
    }
}
